﻿#pragma once

#include "../MonsterObject.h"
#include "../../MirDatabase/MonsterInfo.h"
#include "../../../Shared/Enums.h"
#include "../MapObject.h"
#include <vector>
#include <any>

using namespace Server::MirDatabase;
using namespace Server::MirEnvir;
namespace S = ServerPackets;

namespace Server::MirObjects::Monsters
{
    class HellBomb : public MonsterObject
    {
    public:
        long long ExplosionTime = 0;

    protected:
        bool getCanMove() const override;
        bool getCanRegen() const override;

        HellBomb(MonsterInfo *info);

        void FindTarget() override;

    public:
        void Turn(MirDirection dir) override;

        bool Walk(MirDirection dir) override;

    protected:
        void ProcessRegen() override;
        void ProcessSearch() override;
        void ProcessRoam() override;

    public:
        void ApplyPoison(Poison *p, MapObject *Caster = nullptr, bool NoResist = false, bool ignoreDefence = true) override;


        int Struck(int damage, DefenceType type = DefenceType::ACAgility) override;

    protected:
        void ProcessTarget() override;

    public:
        void Die() override;

    protected:
        void CompleteDeath(std::vector<std::any> &data) override;

    };
}
